/*
 * XML Type:  XNumbericUpDown
 * Namespace: http://www.seedwill.com/xul/widget/
 * Java type: com.seedwill.xul.widget.XNumbericUpDown
 *
 * Automatically generated - do not modify.
 */
package com.seedwill.xul.widget.impl;
/**
 * An XML XNumbericUpDown(@http://www.seedwill.com/xul/widget/).
 *
 * This is a complex type.
 */
public class XNumbericUpDownImpl extends com.seedwill.xul.widget.impl.XInputImpl implements com.seedwill.xul.widget.XNumbericUpDown
{
    private static final long serialVersionUID = 1L;
    
    public XNumbericUpDownImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName FORMAT$0 = 
        new javax.xml.namespace.QName("", "format");
    private static final javax.xml.namespace.QName MAX$2 = 
        new javax.xml.namespace.QName("", "max");
    private static final javax.xml.namespace.QName MIN$4 = 
        new javax.xml.namespace.QName("", "min");
    private static final javax.xml.namespace.QName MAXD$6 = 
        new javax.xml.namespace.QName("", "maxD");
    private static final javax.xml.namespace.QName MIND$8 = 
        new javax.xml.namespace.QName("", "minD");
    private static final javax.xml.namespace.QName STEP$10 = 
        new javax.xml.namespace.QName("", "step");
    private static final javax.xml.namespace.QName STEPD$12 = 
        new javax.xml.namespace.QName("", "stepD");
    
    
    /**
     * Gets the "format" element
     */
    public java.lang.String getFormat()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(FORMAT$0, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "format" element
     */
    public org.apache.xmlbeans.XmlString xgetFormat()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(FORMAT$0, 0);
            return target;
        }
    }
    
    /**
     * True if has "format" element
     */
    public boolean isSetFormat()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(FORMAT$0) != 0;
        }
    }
    
    /**
     * Sets the "format" element
     */
    public void setFormat(java.lang.String format)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(FORMAT$0, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(FORMAT$0);
            }
            target.setStringValue(format);
        }
    }
    
    /**
     * Sets (as xml) the "format" element
     */
    public void xsetFormat(org.apache.xmlbeans.XmlString format)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(FORMAT$0, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(FORMAT$0);
            }
            target.set(format);
        }
    }
    
    /**
     * Unsets the "format" element
     */
    public void unsetFormat()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(FORMAT$0, 0);
        }
    }
    
    /**
     * Gets the "max" element
     */
    public int getMax()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(MAX$2, 0);
            if (target == null)
            {
                return 0;
            }
            return target.getIntValue();
        }
    }
    
    /**
     * Gets (as xml) the "max" element
     */
    public org.apache.xmlbeans.XmlInt xgetMax()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlInt target = null;
            target = (org.apache.xmlbeans.XmlInt)get_store().find_element_user(MAX$2, 0);
            return target;
        }
    }
    
    /**
     * True if has "max" element
     */
    public boolean isSetMax()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(MAX$2) != 0;
        }
    }
    
    /**
     * Sets the "max" element
     */
    public void setMax(int max)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(MAX$2, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(MAX$2);
            }
            target.setIntValue(max);
        }
    }
    
    /**
     * Sets (as xml) the "max" element
     */
    public void xsetMax(org.apache.xmlbeans.XmlInt max)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlInt target = null;
            target = (org.apache.xmlbeans.XmlInt)get_store().find_element_user(MAX$2, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlInt)get_store().add_element_user(MAX$2);
            }
            target.set(max);
        }
    }
    
    /**
     * Unsets the "max" element
     */
    public void unsetMax()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(MAX$2, 0);
        }
    }
    
    /**
     * Gets the "min" element
     */
    public int getMin()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(MIN$4, 0);
            if (target == null)
            {
                return 0;
            }
            return target.getIntValue();
        }
    }
    
    /**
     * Gets (as xml) the "min" element
     */
    public org.apache.xmlbeans.XmlInt xgetMin()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlInt target = null;
            target = (org.apache.xmlbeans.XmlInt)get_store().find_element_user(MIN$4, 0);
            return target;
        }
    }
    
    /**
     * True if has "min" element
     */
    public boolean isSetMin()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(MIN$4) != 0;
        }
    }
    
    /**
     * Sets the "min" element
     */
    public void setMin(int min)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(MIN$4, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(MIN$4);
            }
            target.setIntValue(min);
        }
    }
    
    /**
     * Sets (as xml) the "min" element
     */
    public void xsetMin(org.apache.xmlbeans.XmlInt min)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlInt target = null;
            target = (org.apache.xmlbeans.XmlInt)get_store().find_element_user(MIN$4, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlInt)get_store().add_element_user(MIN$4);
            }
            target.set(min);
        }
    }
    
    /**
     * Unsets the "min" element
     */
    public void unsetMin()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(MIN$4, 0);
        }
    }
    
    /**
     * Gets the "maxD" element
     */
    public java.math.BigDecimal getMaxD()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(MAXD$6, 0);
            if (target == null)
            {
                return null;
            }
            return target.getBigDecimalValue();
        }
    }
    
    /**
     * Gets (as xml) the "maxD" element
     */
    public org.apache.xmlbeans.XmlDecimal xgetMaxD()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlDecimal target = null;
            target = (org.apache.xmlbeans.XmlDecimal)get_store().find_element_user(MAXD$6, 0);
            return target;
        }
    }
    
    /**
     * True if has "maxD" element
     */
    public boolean isSetMaxD()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(MAXD$6) != 0;
        }
    }
    
    /**
     * Sets the "maxD" element
     */
    public void setMaxD(java.math.BigDecimal maxD)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(MAXD$6, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(MAXD$6);
            }
            target.setBigDecimalValue(maxD);
        }
    }
    
    /**
     * Sets (as xml) the "maxD" element
     */
    public void xsetMaxD(org.apache.xmlbeans.XmlDecimal maxD)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlDecimal target = null;
            target = (org.apache.xmlbeans.XmlDecimal)get_store().find_element_user(MAXD$6, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlDecimal)get_store().add_element_user(MAXD$6);
            }
            target.set(maxD);
        }
    }
    
    /**
     * Unsets the "maxD" element
     */
    public void unsetMaxD()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(MAXD$6, 0);
        }
    }
    
    /**
     * Gets the "minD" element
     */
    public java.math.BigDecimal getMinD()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(MIND$8, 0);
            if (target == null)
            {
                return null;
            }
            return target.getBigDecimalValue();
        }
    }
    
    /**
     * Gets (as xml) the "minD" element
     */
    public org.apache.xmlbeans.XmlDecimal xgetMinD()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlDecimal target = null;
            target = (org.apache.xmlbeans.XmlDecimal)get_store().find_element_user(MIND$8, 0);
            return target;
        }
    }
    
    /**
     * True if has "minD" element
     */
    public boolean isSetMinD()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(MIND$8) != 0;
        }
    }
    
    /**
     * Sets the "minD" element
     */
    public void setMinD(java.math.BigDecimal minD)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(MIND$8, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(MIND$8);
            }
            target.setBigDecimalValue(minD);
        }
    }
    
    /**
     * Sets (as xml) the "minD" element
     */
    public void xsetMinD(org.apache.xmlbeans.XmlDecimal minD)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlDecimal target = null;
            target = (org.apache.xmlbeans.XmlDecimal)get_store().find_element_user(MIND$8, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlDecimal)get_store().add_element_user(MIND$8);
            }
            target.set(minD);
        }
    }
    
    /**
     * Unsets the "minD" element
     */
    public void unsetMinD()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(MIND$8, 0);
        }
    }
    
    /**
     * Gets the "step" element
     */
    public int getStep()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(STEP$10, 0);
            if (target == null)
            {
                return 0;
            }
            return target.getIntValue();
        }
    }
    
    /**
     * Gets (as xml) the "step" element
     */
    public org.apache.xmlbeans.XmlInt xgetStep()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlInt target = null;
            target = (org.apache.xmlbeans.XmlInt)get_store().find_element_user(STEP$10, 0);
            return target;
        }
    }
    
    /**
     * True if has "step" element
     */
    public boolean isSetStep()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(STEP$10) != 0;
        }
    }
    
    /**
     * Sets the "step" element
     */
    public void setStep(int step)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(STEP$10, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(STEP$10);
            }
            target.setIntValue(step);
        }
    }
    
    /**
     * Sets (as xml) the "step" element
     */
    public void xsetStep(org.apache.xmlbeans.XmlInt step)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlInt target = null;
            target = (org.apache.xmlbeans.XmlInt)get_store().find_element_user(STEP$10, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlInt)get_store().add_element_user(STEP$10);
            }
            target.set(step);
        }
    }
    
    /**
     * Unsets the "step" element
     */
    public void unsetStep()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(STEP$10, 0);
        }
    }
    
    /**
     * Gets the "stepD" element
     */
    public java.math.BigDecimal getStepD()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(STEPD$12, 0);
            if (target == null)
            {
                return null;
            }
            return target.getBigDecimalValue();
        }
    }
    
    /**
     * Gets (as xml) the "stepD" element
     */
    public org.apache.xmlbeans.XmlDecimal xgetStepD()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlDecimal target = null;
            target = (org.apache.xmlbeans.XmlDecimal)get_store().find_element_user(STEPD$12, 0);
            return target;
        }
    }
    
    /**
     * True if has "stepD" element
     */
    public boolean isSetStepD()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(STEPD$12) != 0;
        }
    }
    
    /**
     * Sets the "stepD" element
     */
    public void setStepD(java.math.BigDecimal stepD)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(STEPD$12, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(STEPD$12);
            }
            target.setBigDecimalValue(stepD);
        }
    }
    
    /**
     * Sets (as xml) the "stepD" element
     */
    public void xsetStepD(org.apache.xmlbeans.XmlDecimal stepD)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlDecimal target = null;
            target = (org.apache.xmlbeans.XmlDecimal)get_store().find_element_user(STEPD$12, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlDecimal)get_store().add_element_user(STEPD$12);
            }
            target.set(stepD);
        }
    }
    
    /**
     * Unsets the "stepD" element
     */
    public void unsetStepD()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(STEPD$12, 0);
        }
    }
}
